Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more validation to the OperatorPolicy #207

Conversation

JustinKuli
Copy link
Member

The ValidPolicySpec condition now reports when the subscription or operatorGroup in the policy have unknown fields. It also reports if the InstallPlanApproval value in the subscription is not correct.

That condition also reports when the namespace for the subscription does not exist, and the controller now watches that namespace so that if it is created (or deleted), the policy will be reconciled and the status will be updated.

Refs:

The `ValidPolicySpec` condition now reports when the subscription or
operatorGroup in the policy have unknown fields. It also reports if the
InstallPlanApproval value in the subscription is not correct.

That condition also reports when the namespace for the subscription
does not exist, and the controller now watches that namespace so that if
it is created (or deleted), the policy will be reconciled and the status
will be updated.

Refs:
 - https://issues.redhat.com/browse/ACM-9993

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
Copy link

openshift-ci bot commented Feb 20, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, mprahl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit c4cfa08 into open-cluster-management-io:main Feb 20, 2024
4 checks passed
@JustinKuli JustinKuli deleted the 9993-operator-validations branch July 25, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants